<html lang="en" xml:lang="en"><head>
<META http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><META name="description" content="The District Lookup widget allows you to find a point feature related to a selected polygon."><meta name="content-language" content="en"><link href="rsrc/htmlhelp.css" rel="stylesheet" type="text/css"><title>Web AppBuilder for ArcGIS | Help - 
District Lookup widget
</title>
                <script type="text/javascript" language="JavaScript">
                    var pathL  = self.location.pathname.split ("/");
                    var fname = pathL[pathL.length-1];
                    var i = fname.lastIndexOf (".htm");
                    if (i>=0) {
                    fname = fname.substring (0, i)
                    } else {
                    //??
                    }
                    if (self.location.hash) {
				    		      fname = fname + self.location.hash;
						        }
                    self.location.replace ("../index.html#//" + fname);
                </script>
                </head><!--Publication GUID: [GUID-E7D1C130-8F87-4109-8D61-E73A46083F52]--><!--Topic GUID: [GUID-82989797-FFC1-4F5D-AC0B-932FFFD37B04]--><body><div id="content"><div class="header"><h1>
District Lookup widget
</h1><div id="breadcrumb"></div></div>
<p id="GUID-E0EC1D68-B6DB-4FE0-81D5-7506BB4DC610"> The District Lookup widget allows you to find
a point feature related to a selected polygon, view detailed
information about the features and get directions to the selected
point feature, if desired.</p>
<p id="GUID-5A15231A-834A-4877-B66B-D146450FF1A9"> The structure of the layers requires a relationship between a point feature and a polygon
feature and must be a one-to-one <a target="_blank" class="xref" rel="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-postgresql/relationship-class-storage-postgresql.htm#guid-f7e16df1-22e4-4e43-8051-449f95e1db1a" href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-postgresql/relationship-class-storage-postgresql.htm#guid-f7e16df1-22e4-4e43-8051-449f95e1db1a">geodatabase relationship</a>.</p>
<div class="section1" id="GUID-B1C3D57B-33E2-433D-946D-6ACFDF7A9726" purpose="section1"><h2>
 Configuring the District Lookup widget
</h2><p id="GUID-87C3EE49-9EA2-4266-B4FD-DD30C8CD8B10">
 The District Lookup widget can be set to open automatically when apps start. To do so, click the dot on the widget to change it to dark green.
</p></div>
<div class="wfsteps" purpose="wfsteps"><h4></h4><div class="steps" id="GUID-77E87C8C-0559-434F-A82C-58D6EF2EDBC4"><div class="step_title">Steps:</div><ol>
<li purpose="step" id="GUID-7CF9CD3A-F82D-4966-B11F-61CDB963EEC8">
<span purpose="cmd" id="GUID-0CFD5DE8-EB50-4A3A-87A7-5F983662162B">
 Hover over the widget and click the small edit icon <img purpose="img" placement="inline" alt="Edit" title="Edit" src="03w3/GUID-31D329BD-BC73-4BBE-AE1D-3A1261BF912A-web.png">. The configuration window for this widget opens.
</span>
</li><li purpose="step" id="ESRI_STEP_189CBB131C294ACBBEAF882D3BD27094"><span purpose="cmd" id="GUID-CE2B0305-59C2-44C7-AC6D-B3662E3D2B1A">Optionally click the change widget icon button and replace it with your own image.</span><div class="info" purpose="info"><p id="GUID-CEF5B9EE-1AAF-448E-99B1-0AB941C28176">A file explorer window opens, allowing you to select a local image file to use as the widget icon.</p></div></li><li purpose="step" id="ESRI_STEP_D2FCBE77C9794CE0949A59C6AC5C627F"><span purpose="cmd" id="GUID-833E2AEE-32BE-496A-9DC1-FFD08ECCF1CC">In the <span class="uicontrol">Search Settings</span> section of the widget configuration, specify the following options:</span><div class="substeps" id="ESRI_SUBSTEPS_22946BA3FA6C41C6939FB423685AB7A2" purpose="substeps"><ol><li purpose="substep" id="ESRI_SUBSTEP_84360B83B2574FE4A034744E592B1FB5"><span purpose="cmd" id="GUID-527790E9-9036-448E-8222-6FBB789351AB"><span class="uicontrol">Select layer</span>—Click <span class="uicontrol">Set</span> to define layers. In the dialog box, define the following parameters:</span><div class="info" purpose="info"><ul purpose="ul" id="UL_4FB38E61631745C7B3C567491B137382"><li purpose="li" id="LI_8E927060586A43BC83ED6A95B334E6CF"><span class="uicontrol">Select polygon layer</span>—Define the polygon layer.</li><li purpose="li" id="LI_ADD049B2659B4BED8D93D9B35558CE52"><span class="uicontrol">Select point layer related to polygon layer</span>—Define the point layer related to the polygon layer.</li></ul></div></li><li purpose="substep" id="ESRI_SUBSTEP_4A4589384BEA48B58DAD95703291D921"><span purpose="cmd" id="GUID-21A10D7A-EF71-4035-8EE3-7F3BB7B06226"><span class="uicontrol">Select symbol to highlight polygon</span>—Select the display symbol, color, transparency, outline color, and outline width to be used to highlight the polygon.</span></li><li purpose="substep" id="ESRI_SUBSTEP_33832F44C016463F95B309AD9F5D451F"><span purpose="cmd" id="GUID-04AEF10A-6A41-4575-B95F-41929574BD02"><span class="uicontrol">Address or location symbol</span>—Select and adjust the symbol of the address or location symbol.</span></li><li purpose="substep" id="ESRI_SUBSTEP_2363F9D69B454483B503BCC5AEEEC5DA"><span purpose="cmd" id="GUID-5AE6FF55-B82E-44CE-9626-2BDB146F06B9"><span class="uicontrol">Select color to highlight point</span>—Define the color used to highlight the point symbol.</span></li></ol></div><div class="info" purpose="info"><div class="notes" id="GUID-805A7079-7A70-4E32-8A21-2508918EE76A"><div class="note"><img class="note_img" src="rsrc/note.png" alt="Note" title="Note"><span>Note:</span></div><div class="tipbody">The widget uses the pop-up defined in the map on the <span class="uicontrol">Information</span> tab. You can enable one or both layers to have pop-ups. Whatever is defined will be displayed on the <span class="uicontrol">Information</span> tab.</div></div></div></li><li purpose="step" id="ESRI_STEP_0DA30B6A905F47678B4CF1AFC0A979BD"><span purpose="cmd" id="GUID-65580D91-1CB4-43A9-998B-B5D5F614AA47">Optionally, in the <span class="uicontrol">Directions Settings</span> section of the widget configuration, you can set up the widget to use routing, which gives you the option to get driving directions to the selected feature. </span><div class="info" purpose="info"><div class="notes" id="GUID-B31A154B-9EC7-4262-89E0-C5DCA08B774E"><div class="license"><img class="note_img" src="rsrc/license.png" alt="License" title="License"><span>License:</span></div><div class="tipbody"><p id="GUID-C645BA08-EABB-42A0-A701-07CCBBC2363E">The <span purpose="ph" varid="ArcGISOnline">ArcGIS Online</span> network analysis services requires an <span purpose="ph" varid="ArcGISOnline">ArcGIS Online</span> for organizations subscription. If you choose to work with this by default, specify a valid user name and password for <span purpose="ph" varid="ArcGISOnline">ArcGIS Online</span>. Each successful request to the service incurs service credits taken from your subscription. In addition, if you have ArcGIS Server network analysis services, you can also specify the URL.</p></div></div><div class="notes" id="GUID-0E147920-2564-4C69-9CB7-B0CCFEEEF9C6"><div class="tip"><img class="note_img" src="rsrc/tip.png" alt="Tip" title="Tip"><span>Tip:</span></div><div class="tipbody"><p id="GUID-C2761378-3812-4B76-90D0-50933D4669CF">If you want to share your secure service item with the public, for example, as part of a public web app, store the credentials with the item so the public is not required to log in to get to your app. Refer to <a class="xref" target="_blank" rel="http://server.arcgis.com/en/portal/latest/use/arcgis-server-services.htm" href="http://server.arcgis.com/en/portal/latest/use/arcgis-server-services.htm">ArcGIS Server web services</a>.</p></div></div></div></li><li purpose="step" id="ESRI_STEP_0A072DA909B64DD681E4E30D7134B885"><span purpose="cmd" id="GUID-FD74132D-5741-4091-AA9C-90ACAD6BB988">To configure the <span class="uicontrol">Directions Settings</span> section of the widget configuration, you’ll need to specify the following options:</span><div class="substeps" id="ESRI_SUBSTEPS_2732C596376A443F81A8C94880439C29" purpose="substeps"><ol><li purpose="substep" id="ESRI_SUBSTEP_09299E1360FB48A68FF098A4B72CE346"><span purpose="cmd" id="GUID-5E1C9482-F975-46FB-B703-CC2BB45FCC65"><span class="uicontrol">Routing Service</span>—Click <span class="uicontrol">Set</span> and browse to a routing service in your <span purpose="ph" varid="ArcGISOnline">ArcGIS Online</span> organizational account or provide the URL to the routing service.</span></li><li purpose="substep" id="ESRI_SUBSTEP_258F4EEC3A2B40DF8693585329BFF8A1"><span purpose="cmd" id="GUID-0565EEF5-3E52-4B55-A492-84465EE867EF"><span class="uicontrol">Direction length units</span>—Select the units used to display directions (kilometers or miles). </span></li><li purpose="substep" id="ESRI_SUBSTEP_DF3193D365254477A6305A1611305831"><span purpose="cmd" id="GUID-00331755-6038-4E6F-91FF-C4D2B7232C05"><span class="uicontrol">Select symbol to display route</span>—Select the display symbol, color, style, transparency, and width used for the route.</span></li></ol></div></li>
<div class="stepinfo" purpose="stepinfo"><div class="notes" id="GUID-F24CC325-752C-44CD-A12C-17FAB770150E"><div class="tip"><img class="note_img" src="rsrc/tip.png" alt="Tip" title="Tip"><span>Tip:</span></div><div class="tipbody">Routing is enabled and disabled in the application settings of the <span purpose="ph" varid="ArcGISOnline">ArcGIS Online</span> item page of the map used by the widget. If you see the message <span class="uicontrol">To enable directions, ensure that routing is enabled in the ArcGIS Online item.</span> on the <span class="uicontrol">Directions</span> tab and you want to enable directions, go to the <span class="uicontrol">Application Settings</span> on the items detail page of the map you are using, recheck the routing application setting, and save the map. See <a class="xref" target="_blank" rel="http://server.arcgis.com/en/portal/latest/use/set-options-for-apps.htm" href="http://server.arcgis.com/en/portal/latest/use/set-options-for-apps.htm">Set map options for apps</a>.</div></div>
</div></ol></div></div>
<div class="section1" id="ESRI_SECTION1_36550985BF7B4C358C9A32A5DF86A58B" purpose="section1"><h2> Using the District Lookup widget</h2></div>
<div class="wfsteps" purpose="wfsteps"><h4></h4><div class="steps" id="ESRI_STEPS_9F76E9C8780342AFA1C265F1723DD595"><div class="step_title">Steps:</div><ol><li purpose="step" id="ESRI_STEP_13083F44F01B47A892BF404C44554B1B"><span purpose="cmd" id="GUID-F0F7B570-E6D3-44B5-9345-5208EC0FDF69">Click the District Lookup widget icon to open it.</span></li><li purpose="step" id="ESRI_STEP_D3A5BB1393E4476BA77F9B936591FFB7"><span purpose="cmd" id="GUID-BE0BB902-7DC5-4D50-9120-9F03E87720EF">Search for an address in the search bar or click a location directly on the map to define the location.</span><div class="info" purpose="info"><p id="GUID-ABEB6AA8-DB7E-4823-A18C-9825BB276355">When a defined location is within the polygon layer, you will see information about the point feature and the related polygon highlighted on the map.</p></div></li><li purpose="step" id="ESRI_STEP_67ACD133F13142C1958C021C074E0944"><span purpose="cmd" id="GUID-59701E1A-26AE-4D72-9EC5-B8308897C258">On the <span class="uicontrol">Information</span> tab, the map pop-ups are defined for each of the layers.<div class="image" purpose="image"><table><tr><td><img class="break" src="03w3/GUID-F7AFEB31-DE76-46AF-A93E-CF6307E9B25B-web.png" purpose="img" alt="Information about the district" title="Information about the district"></td></tr></table></div> </span></li><li purpose="step" id="ESRI_STEP_0F3681A5B6054E2EA70508B5C1DCB115"><span purpose="cmd" id="GUID-6F5211E6-2755-450B-A128-00D464008E27">Click the <span class="uicontrol">Directions</span> tab if the widget is configured to provide driving directions, and it will provide you with driving directions to the selected feature from the defined location. </span></li></ol></div></div><div class="footer"> Copyright © 1995-2016 Esri. All rights reserved. </div></div></body></html>